//
//  YunOrderListViewModel.h
//  BaseProject
//
//  Created by 王盼盼 on 2024/10/21.
//  Copyright © 2024 wangpanpan. All rights reserved.
//

#import <Foundation/Foundation.h>
@class YunOrderListModel, YunOrderClassesModel;
NS_ASSUME_NONNULL_BEGIN

@interface YunOrderListViewModel : NSObject
/// 转换
- (void)transfrom;

/// 头部/脚本 刷新
/// - Parameter header:
- (void)refresh:(BOOL)header;

/// 刷新
@property(nonatomic, copy) void (^refresh)(BOOL hasNext);

/// 数组
@property(nonatomic, strong, readonly) NSArray<YunOrderListModel *> *dataArray;

/// 分类
@property(nonatomic, strong, readonly) NSArray<YunOrderClassesModel *> *classes;

/// 设置分类
/// - Parameter classId: 分类
- (void)resetClassId:(NSString *)classId;
@end

NS_ASSUME_NONNULL_END
